package com.message.entity;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.NonNull;

import javax.validation.constraints.NotNull;

/**
 * Created by Administrator on 2018/4/13 0013.
 * 服务消息
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
public class ServiceMessage<T> {
    /**
     * 消息数据类型
     * Task_State_Change //测试状态变更
     *  Task_Begin  //测试开始
     * Task_Stop   //测试完成
     */
    @NonNull
    private String type;
    @NonNull
    private String taskId;

    private T data;
}
